import { instance, request } from "./request";

//添加备货单
export const addStockUp = (data) => {
  return instance({
    url: "/StockUp/add",
    method: "post",
    data,
  });
};

//获取SKU下拉列表
export const getSkuList = () => {
  return instance({
    url: "/Sku/getFieldList",
    method: "get",
  });
};

//获取仓库下拉列表
export const getWarehouseList = () => {
  return request({
    url: "/index/warehouseList",
    method: "get",
  });
};

//交货方式
export const getStockUpType = () => {
  return request({
    url: "/index/getStockUpType",
    method: "get",
  });
};

//列表接口
export const getStockList = (data) => {
  return instance({
    url: "/StockUp/stockList",
    method: "post",
    data,
  });
};
